Utility.getUTCOffsetDateTime Method

Alters the specified date to handle offsetting by the browser between UTC and the local time zone when parsing and stringifying.
 

Parameters

targetDateTime

Type: Date
The value to convert between UTC and the current time zone.
parsing

Type: boolean
(Optional) True to convert a value previously parsed as UTC and offset to the current time zone back to the original date and time in the current time zone; otherwise, a value is returned that will be stringified as the same date and time in UTC for sending to the server.
Optional: True

Return Value


Type: Date
The targetDateTime value offset between UTC and the current time zone.